// src/design/dto/update-page.dto.ts
import { Expose, Transform } from 'class-transformer';

export class UpdatePageDto {
  title?: string;
  content?: string;

  @Expose({ name: 'categoryId' })
  @Transform(({ value }) => value, { toClassOnly: true })
  category_id?: number;

  @Expose({ name: 'coverImages' })
  @Transform(({ value }) => value, { toClassOnly: true })
  cover_images?: any;

  @Expose({ name: 'isVisible' })
  @Transform(({ value }) => value, { toClassOnly: true })
  is_visible?: boolean;

  coverImg?: string;
  summary?: string;
}